package com.situ.springboot.service.impl;

import com.situ.springboot.mapper.AdminMapper;
import com.situ.springboot.pojo.entity.Admin;
import com.situ.springboot.pojo.entity.User;
import com.situ.springboot.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin login(String name, String password) {
        return adminMapper.login(name, password);
    }

    @Override
    public Admin selectById(Integer id) {
        return adminMapper.selectById(id);
    }

    @Override
    public void update(Admin admin) {
        adminMapper.update(admin);
    }
}
